:root {
  /* 莫兰迪紫色调 - 会员专属色 */
  --member-primary: #B39DDB;
  --member-primary-dark: #9575CD;
  --member-primary-light: #D1C4E9;
  --member-secondary: #C5CAE9;
  --member-accent: #E1BEE7;
  
  /* 会员专属文字颜色 */
  --member-text-primary: #555555;
  --member-text-secondary: #666666;
  --member-text-accent: #B39DDB;
  
  /* 会员专属阴影 */
  --member-shadow: 0 4px 12px rgba(179, 157, 219, 0.2);
  --member-shadow-hover: 0 8px 20px rgba(179, 157, 219, 0.3);
  
  /* 会员专属边框 */
  --member-border: 1px solid var(--member-primary-light);
  --member-border-hover: 2px solid var(--member-primary);
}

/* 会员标识样式 */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background-color: var(--member-primary);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  animation: pulse 2s infinite;
}

/* 会员入口卡片样式 */
.member-entry-card {
  background: linear-gradient(135deg, white 0%, #F5F5F5 100%);
  border: var(--member-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.member-entry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--member-shadow-hover);
  border-color: var(--member-primary);
}

.member-entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--member-primary), var(--member-accent));
}

/* 会员按钮基础样式 */
.member-btn {
  background: linear-gradient(135deg, var(--member-primary), var(--member-primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--member-shadow);
}

.member-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--member-shadow-hover);
  background: linear-gradient(135deg, var(--member-primary-dark), var(--member-primary));
}

.member-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.member-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* 会员权益卡片样式 */
.member-benefit-card {
  background: white;
  border: 2px solid var(--member-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.member-benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--member-shadow-hover);
  border-color: var(--member-primary);
}

.member-benefit-card .benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--member-primary);
  transition: transform 0.3s ease;
}

.member-benefit-card:hover .benefit-icon {
  transform: scale(1.2) rotate(5deg);
}

/* 会员价格套餐卡片样式 */
.member-plan-card {
  background: white;
  border: 2px solid var(--member-border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.member-plan-card.selected {
  border-color: var(--member-primary);
  background: linear-gradient(135deg, white 0%, rgba(179, 157, 219, 0.05) 100%);
  transform: scale(1.02);
}

.member-plan-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--member-primary), var(--member-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.member-plan-card:hover::after {
  transform: scaleX(1);
}

.member-plan-card.selected::after {
  transform: scaleX(1);
}

/* 会员价格标签样式 */
.member-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--member-text-accent);
  margin-bottom: 8px;
}

/* 会员专属标签样式 */
.member-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--member-accent);
  color: var(--member-text-primary);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* 支付成功花瓣飘落动画 */
@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg);
  }
}

.petal {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: var(--member-primary-light);
  border-radius: 20px 0;
  animation: petalFall 3s ease-in-out forwards;
  z-index: 9999;
}

/* 脉冲动画 */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(179, 157, 219, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(179, 157, 219, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(179, 157, 219, 0);
  }
}

/* 渐变动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animation {
  background: linear-gradient(
    270deg,
    var(--member-primary),
    var(--member-secondary),
    var(--member-accent),
    var(--member-primary)
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* 会员专属滚动条 */
.member-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.member-scrollbar::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 4px;
}

.member-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--member-primary-light), var(--member-primary));
  border-radius: 4px;
}

.member-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--member-primary-dark);
}

/* 移动端会员专属样式 */
@media (max-width: 768px) {
  .member-btn {
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 50px;
  }
  
  .member-benefit-card,
  .member-plan-card {
    padding: 24px 16px;
  }
  
  .member-price {
    font-size: 2.5rem;
  }
  
  .member-badge {
    font-size: 14px;
    padding: 6px 16px;
  }
}